#include <iostream>
#include <stdlib.h>
#include "SockClient.h"

using namespace std;


int main(int argc,char **argv)
{
	SockClient client;
	
	if(argc != 3){
		cout<<"Usage:<<argv[0]"<<" <ip> <port> "<<endl;
		return -1;	
	}
	
	if(!client.StartClient(argv[1],atoi(argv[2]))){
		cout<<"ERROR:"<<client.GetErr()<<endl;
		return -1;	
	}
	
	return 0;
}
